<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MailMeControl.ascx.cs" Inherits="MailMeControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<table cellpadding="0" border="0" cellspacing="0" style="width: 400px; font-family:Arial; font-size:smaller">
    <tr>
        <td colspan="3">[Send a e-mail to me]
            <asp:UpdateProgress ID="UpdateProgress1" DynamicLayout="false" runat="server">
                <ProgressTemplate>
                    mailing....
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
    <tr>
        <td style="width: 89px; height: 14px">
            <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender WatermarkText="Write Your Name" WatermarkCssClass="watermark" ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtName">
            </cc1:TextBoxWatermarkExtender>
        </td>
        <td style="width: 64px; height: 14px">
            <asp:RequiredFieldValidator ID="txtNameValidator" runat="server" Display="Dynamic" ErrorMessage="Required" ControlToValidate="txtName"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 89px; height: 9px">
            <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" WatermarkText="Write Your Email" WatermarkCssClass="watermark" runat="server" TargetControlID="txtEmail">
            </cc1:TextBoxWatermarkExtender>
        </td>
        <td style="width: 64px; height: 9px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="txtEmailRegExValidator1" runat="server" ControlToValidate="txtEmail"
                Display="Dynamic" ErrorMessage="Invalid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
    </tr>
    <tr>
        <td style="width: 89px; height: 21px">
            <asp:TextBox ID="txtSubject" runat="server" Width="300px"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender WatermarkText="Write Your Subject" WatermarkCssClass="watermark" ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtSubject">
            </cc1:TextBoxWatermarkExtender>
        </td>
        <td style="width: 64px; height: 21px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSubject"
                ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 89px; height: 21px">
            <asp:TextBox ID="txtMsg" runat="server" Height="80px" TextMode="MultiLine" Width="300px"></asp:TextBox>
            <cc1:TextBoxWatermarkExtender WatermarkText="Write Your Message" ID="TextBoxWatermarkExtender4" WatermarkCssClass="watermark" runat="server" TargetControlID="txtMsg">
            </cc1:TextBoxWatermarkExtender>
        </td>
        <td style="width: 64px; height: 21px; vertical-align:top;">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtMsg"
                Display="Dynamic" ErrorMessage="Required"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 89px; height: 21px">
            <asp:Button ID="btnSendEmail" runat="server" Text="Button" OnClick="btnSendEmail_Click" SkinID="submitButton" /></td>
        <td style="width: 64px; height: 21px">
            </td>
    </tr>
</table>

       
    </ContentTemplate>
</asp:UpdatePanel>
&nbsp; &nbsp;